#ifndef MYLABEL_H
#define MYLABEL_H

#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QEvent>
#include <QMouseEvent>
#include <QKeyEvent>


class MyLabel : public QLabel
{
    Q_OBJECT
public:
    MyLabel();
    explicit MyLabel(QWidget *parent);

    /**********virtual**********/
    //重写鼠标进入事件
    void enterEvent(QEvent *event) override;
    //重写鼠标离开事件
    void leaveEvent(QEvent *event) override;
    //重写鼠标按下事件
    void mousePressEvent(QMouseEvent *event)override;
    //重写鼠标松开事件
    void mouseReleaseEvent(QMouseEvent *event) override;
    //鼠标双击事件
    void mouseDoubleClickEvent(QMouseEvent *event)override;


};

#endif // MYLABEL_H
